package com.abc.springboot.mapper;

import com.abc.springboot.pojo.Student;
import com.abc.springboot.pojo.Teacher;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface TeacherMapper {
    //查找全部老师
    public List<Teacher> selectTeachers();
    //根据id查找老师
    public Teacher selectTeacherById(int id);
    //根据id更新老师
    public int updateTeacherById(Teacher teacher);
    //根据id删除老师
    public int deleteTeacherById(int id);
}
